package com.yuyang.wifi.views.recyclerview.model;

import android.view.View;

import com.yuyang.wifi.views.recyclerview.swipe.SwipeLoadMoreTrigger;
import com.yuyang.wifi.views.recyclerview.swipe.SwipeTrigger;


/**
 * Created by tik on 17/8/15.
 */

public class LoadMoreItem extends SimpleItem {
    protected SwipeLoadMoreTrigger mLoadMoreTrigger;
    protected SwipeTrigger mSwipeTrigger;

    public LoadMoreItem() {
    }

    public LoadMoreItem(View view, int height) {
        super(view, height);
    }

    public LoadMoreItem(View view) {
        super(view);
    }

    public void init(Object view) {
        if (view instanceof SwipeLoadMoreTrigger) {
            mLoadMoreTrigger = (SwipeLoadMoreTrigger) view;
        }
        if (view instanceof SwipeTrigger) {
            mSwipeTrigger = (SwipeTrigger) view;
        }
    }

    public SwipeLoadMoreTrigger getLoadMoreTrigger() {
        return mLoadMoreTrigger;
    }

    public void setLoadMoreTrigger(SwipeLoadMoreTrigger loadMoreTrigger) {
        mLoadMoreTrigger = loadMoreTrigger;
    }

    public SwipeTrigger getSwipeTrigger() {
        return mSwipeTrigger;
    }

    public void setSwipeTrigger(SwipeTrigger swipeTrigger) {
        mSwipeTrigger = swipeTrigger;
    }
}
